package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("zdd_system_tradecategory")
public class SystemTradeCategory extends Model<SystemTradeCategory> {
    @TableId(value = "tradecategoryid", type = IdType.AUTO)
    private Integer tradecategoryid;
    /**
     * 行业类别
     */
    private String tradecategory;
    /**
     * 经营范围  用 ,隔开
     */
    private String bizscope;
    /**
     * 开票范围  用 ,隔开1
     */
    private String invoicescope;
    private Integer parentid;
    /** 排序值，越小越前面 */
    private Integer sort;

    @TableField(exist = false)
    private List<SystemTradeCategory> childTradeCategory;

    @Override
    protected Serializable pkVal() {
        return tradecategoryid;
    }
}
